<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        //求任意5个数的最大值
        function ismax(a, b, c, d, e) {
            let maxnum;
            maxnum = (a > b) ? a : b;
            maxnum = (maxnum > c) ? maxnum : c;
            maxnum = (maxnum > d) ? maxnum : d;
            maxnum = (maxnum > e) ? maxnum : e;
            return maxnum;
        }
        let a = prompt("请输入一个数字")
        let b = prompt("请输入一个数字")
        let c = prompt("请输入一个数字")
        let d = prompt("请输入一个数字")
        let e = prompt("请输入一个数字")

        console.log('最大的数字是' + ismax(a, b, c, d, e));
    </script>
</body>

</html>